package bizlogic;

import java.util.ArrayList;

import model.LeaveDTO;
import exception.DAOSystemException;
import dao.DAOFactory;
import dao.LeaveDAO1;


public class LeaveManager1 {
	private LeaveDAO1 leaveDAO;
	public LeaveManager1() {
		leaveDAO = DAOFactory.loadInstance().getLeaveDAO1();
	}

	
	public void updateForApprove(String userid,Double consume,String type)
	{
		
		try {
			 leaveDAO.updateForApprove(userid,consume,type);
		} catch (DAOSystemException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
	}
	public void updateLeaveForApprove(String id)
	{
		try {
			 leaveDAO.updateLeaveForApprove(id);
		} catch (DAOSystemException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
	}
	
	public void updateLeaveForReject(String id)
	{
		try {
			 leaveDAO.updateLeaveForReject(id);
		} catch (DAOSystemException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
	}
    

}
